
public class 数组查找 {
    public static void main(String[] args) {
        int[] x = {18,36,28,99,78,63,92,56};
        Arr_find(x);
    }
    public static int[] Arr_find(int[] arr){
        int count_big=0;
        int count_common=0;
        int count_small=0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]>70){
                count_big++;
            }
            else if(50<=arr[i]&&arr[i]<=70){
                count_common++;
            }
            else {
                count_small++;
            }
        }
        System.out.println("大于70的有:"+count_big+"个");
        System.out.println("在50到70之间的的有:"+count_common+"个");
        System.out.println("小于50的有:"+count_small+"个");
        return arr;

    }
}
